package principal;

import boardGenerator.BoardPrint;
import boardGenerator.GameDifficultyLevel;
import models.SudokuModelo;

/**
 * Pruba de los generador Sudokus por Consola
 */
public class SudokuGeneratorTest {

    public static void main(String[] args) {
        int[][] board;
        int[][] solution;
        int numberCount;
        SudokuModelo model;
        GameDifficultyLevel diff = GameDifficultyLevel.HARD;
               
        /*Llamada usando el generador 1*/
        System.out.println("SudokuGenerator 1");
        /*Inicializo el generador*/
        model = new SudokuModelo(SudokuModelo.Model1,diff);
        /*Inicializo variables del Juego*/
        board = model.getBoard();
        solution = model.getSolution();
        numberCount = model.getNumberCount();
        /*Muestro por pantalla Datos*/
        System.out.println("Dificultad "+diff);
        System.out.println("Muesta "+numberCount+" Numeros");
        System.out.println("Tablero Como Linea");
        BoardPrint.printLine(board);
        System.out.println("Tablero");
        BoardPrint.print(board);
        System.out.println("Solucion");
        BoardPrint.print(solution);
        
        /*Llamada usando el generador 2*/
        System.out.println("SudokuGenerator 2");        
        /*Inicializo el generador*/
        model = new SudokuModelo(SudokuModelo.Model2,diff);
        /*Inicializo variables del Juego*/
        board = model.getBoard();
        solution = model.getSolution();
        numberCount = model.getNumberCount();
        /*Muestro por pantalla Datos*/
        System.out.println("Dificultad "+diff);
        System.out.println("Muesta "+numberCount+" Numeros");
        System.out.println("Tablero Como Linea");
        BoardPrint.printLine(board);
        System.out.println("Tablero");
        BoardPrint.print(board);
        System.out.println("Solucion");
        BoardPrint.print(solution);
    }
}
